//
//  TypeAllTopic.m
//  LiWuShuo
//
//  Created by 袁小航 on 14/11/18.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TypeAllTopic.h"
#import "Define.h"

@implementation TypeAllTopic


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
//        创建allTopic的collectionview
        [self createAllTopicCollectionView];
        
    }
    return self;
}

- (void)createAllTopicCollectionView
{
    self.alltopicLayout = [[UICollectionViewFlowLayout alloc]init];
    _alltopicLayout.itemSize = CGSizeMake(PRO_IMAGE_WIDTH - 14, 160);
    _alltopicLayout.sectionInset = UIEdgeInsetsMake(10, 0, 0, 0);
    
    self.allTopicCollectionView = [[UICollectionView alloc]initWithFrame:self.bounds collectionViewLayout:_alltopicLayout];
    _allTopicCollectionView.backgroundColor = [UIColor whiteColor];
    [self addSubview:_allTopicCollectionView];
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
